#pragma once
#include<string>
#include<iostream>
#include<ctime>

inline std::string GetCurrentTime()   
{
    time_t timec=time(nullptr);
    struct tm*localtimes=::localtime(&timec);
    char currenttime[64];
    snprintf(currenttime,sizeof(currenttime),"%d-%d-%d-%d-%d-%d",
    localtimes->tm_year+1900,
    localtimes->tm_mon+1,
    localtimes->tm_mday,
    localtimes->tm_hour,
   localtimes->tm_min,
   localtimes->tm_sec);
   return currenttime;
}